package com.woniu.cms.settlement.core.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.cms.settlement.core.Vo.EngineeringManagementVo;
import com.woniu.cms.settlement.core.Vo.ReleaseManagementVO;
import com.woniu.cms.settlement.core.Vo.SubcontractingSettlementVO;
import com.woniu.cms.settlement.core.entity.SettlementInformation;
import com.woniu.cms.settlement.core.mapper.SettlementInformationMapper;
import com.woniu.cms.settlement.core.service.ISettlementInformationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 项目信息 服务实现类
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-20
 */
@Service
public class SettlementInformationServiceImpl extends ServiceImpl<SettlementInformationMapper, SettlementInformation> implements ISettlementInformationService {
    @Autowired
    private SettlementInformationMapper informationMapper;
//    @Autowired
//    private LeaseManageFeign leaseManageFeign;
    //劳务分包结算
    @Override
    public IPage<SubcontractingSettlementVO> service(Page<SubcontractingSettlementVO> page) {
        Page<SubcontractingSettlementVO> page2 = new Page<>();
        IPage<SubcontractingSettlementVO> service = informationMapper.service(page2);
        return service;
    }

    //工程结算
    @Override
    public IPage<EngineeringManagementVo> Project(Page<EngineeringManagementVo> page) {
        Page<EngineeringManagementVo> page2 = new Page<>();
        IPage<EngineeringManagementVo> project = informationMapper.Project(page2);
        return project;
    }

    //项目成本下达管理
    @Override
    public IPage<ReleaseManagementVO> releaseManagement(Page<ReleaseManagementVO> page) {
        Page<ReleaseManagementVO> page2 = new Page<>();
        IPage<ReleaseManagementVO> releaseManagementVOS = informationMapper.releaseManagement(page2);
        return releaseManagementVOS;
    }

    //下达成本总费用
    @Override
    public int up(int id) {
        int up = informationMapper.up(id);
        return up;
    }

}
